package 封装;

public class fengzhuang {
    private int age;
    private String name;
    public void shezhiAge(int age,String name)
    {
        if(age>30)
        {
            this.age=18;
            this.name="关你屁事";
        }
        else
        {
            this.name=name;
            this.age=age;
        }

    }
    public int dequeAgea(){
        return age;

    }
    public String dequename(){
            return name;

        }

    }
